package com.szy.news.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

/**
 *@author qi
 *@date 2014-4-2
 *@name 系统主界面
 *
 */
public class MainActivity extends BaseActivity
{
	private ViewGroup mLoadMoreBtn;
	

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		MainListOnClickListener mainListOnClickListener = new MainListOnClickListener();

		//新闻回复Button
		mLoadMoreBtn = (ViewGroup) findViewById(R.id.fl_1);
		mLoadMoreBtn.setOnClickListener(mainListOnClickListener);
	}
	
	/**
	 * 处理NewsDetailsTitleBar点击事件
	 */
	class MainListOnClickListener implements OnClickListener
	{
		@Override
		public void onClick(View v)
		{
			switch (v.getId())
			{
			// 显示评论
			case R.id.fl_1:
//			Toast.makeText(getApplicationContext(), "button被触发", Toast.LENGTH_LONG).show();
			Intent intent = new Intent(MainActivity.this, MainListActivity.class);
			startActivity(intent);break;
			}
		}
	}

	
}